package com.gwtgeo.service.manager.impl;

import java.util.List;

import com.gwtgeo.service.dao.LocationDao;
import com.gwtgeo.service.manager.LocationManager;
import com.gwtgeo.service.model.Location;

public class LocationManagerImpl implements LocationManager {

	LocationDao locationDao;

	public List<Location> getAll() {
		return locationDao.getAll();
	}

	public List<Location> findByName(String name) {
		return locationDao.findByName(name);
	}

	public List<Location> findByCoordinates(Double latitude, Double longitude) {
		return locationDao.findByCoordinates(latitude, longitude);
	}

	public void setLocationDao(LocationDao locationDao) {
		this.locationDao = locationDao;
	}
}
